package com.gz.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gz.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import lombok.Data;


@Data
@ApiModel(value = "商品实体类",description = "商品实体类" )
public class Product extends BaseVO implements Serializable {
    @ApiModelProperty(hidden = true)
    private static final long serialVersionUID = -17919557116898685L;
    
    @ApiModelProperty(hidden = true)
    private Integer id;
    
    @ApiModelProperty("商家ID")
    private String storeId;
    
    @ApiModelProperty("商家名称")
    private String storeName;
    
    @ApiModelProperty("公司名称")
    private String companyName;
    
    @ApiModelProperty("产品类别")
    private String productCategory;
    
    @ApiModelProperty("产品编码")
    private String productCode;
    
    @ApiModelProperty("商品名称")
    private String productName;
    
    @ApiModelProperty("批次号")
    private String batchNumber;
    
    @ApiModelProperty("序列号")
    private String serialNumber;
    
    @ApiModelProperty("库存")
    private Integer countNumber;
    
    @ApiModelProperty("单位（规格）")
    private String unit;
    
    @ApiModelProperty("厂商")
    private String manufacturer;
    
    @ApiModelProperty("商品细分类")
    private String productType;
    
    @ApiModelProperty("商品生产地")
    private String productFrom;
    
    @ApiModelProperty("商品生产日期")

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date productCreateDate;
    
    @ApiModelProperty("商品评分")
    private String productScore;
    
    @ApiModelProperty("数据创建人id")
    private Integer crtId;
    
    @ApiModelProperty("数据创建人时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date crtDt;
    
    @ApiModelProperty("数据更新人id")
    private Integer optId;
    
    @ApiModelProperty("数据更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date optDt;
    
    @ApiModelProperty("商品图片1")
    private String dtPic1;
    
    @ApiModelProperty("商品图片2")
    private String dtPic2;
    
    @ApiModelProperty("商品图片3")
    private String dtPic3;
    
    @ApiModelProperty("商品图片4")
    private String dtPic4;
    
    @ApiModelProperty("商品图片5")
    private String dtPic5;
    
    @ApiModelProperty("商品图片6")
    private String dtPic6;
    
    @ApiModelProperty("单价")
    private String unitPrice;
    
    @ApiModelProperty("参与活动id")
    private String activityId;
    
    @ApiModelProperty("支持配送方式")
    private String supportSend;
    
    @ApiModelProperty("在售状态")
    private Integer saleStatus;
    
    @ApiModelProperty("保质期")
    private String guaranteePeriod;
    
    @ApiModelProperty("商品到期时间")

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date expirationTime;
    
    @ApiModelProperty("删除状态 1为删除，其余为未删除")
    private Integer status;

    @ApiModelProperty("距离用户的距离（单位km）")
    private BigDecimal distance;


    public List<String> getDtPics() {
        List<String> pics=new ArrayList<>();
        pics.add(dtPic1);
        pics.add(dtPic2);
        pics.add(dtPic3);
        pics.add(dtPic4);
        pics.add(dtPic5);
        pics.add(dtPic6);
        return pics;
    }
}

